package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.AssetsBeanMapper;
import com.billing.model.entity.TAssets;
import com.billing.service.AssetsService;

@Service
public class AssetsServiceImpl implements AssetsService {

	@Resource
	private AssetsBeanMapper assetsBeanMapper; 
	
	
	public List<TAssets> getTAssetsList(String name, String coding,int organizationid,
			int currentPage, int pageSize) {
		return assetsBeanMapper.getTAssetsList(name, coding,organizationid, currentPage, pageSize);
	}

	public int getTAssetsNum(String name, String coding,int organizationid) {
		return assetsBeanMapper.getTAssetsNum(name, coding,organizationid);
	}

	public TAssets getTAssetsCoding(String coding) {
		return assetsBeanMapper.getTAssetsCoding(coding);
	}

	public int updateTAssets(TAssets assets) {
		return assetsBeanMapper.updateTAssets(assets);
	}

	public int insertTAssets(TAssets assets) {
		return assetsBeanMapper.insertTAssets(assets);
	}

	public int deleteTAssets(int id) {
		return assetsBeanMapper.deleteTAssets(id);
	}

	public TAssets getTAssetsbyId(int id) {
		return assetsBeanMapper.getTAssetsbyId(id);
	}

}
